home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / msivt3.zip / MSIVT3.INI < prev   
Text File  |  1991-04-15  |  9KB  |  210 lines

  1. ; MSIVT3.INI - MS-DOS Kermit keyboard setup for DEC VT200-300 series
  2. ; terminals.  Originally contributed by Kevin Lowey, University of
  3. ; Saskatchewan Computing Services.  For use only with MS-DOS Kermit 3.10
  4. ; or later.  Adapted for new features of version 3.10 at Columbia University.
  5. ;
  6. ; Two different setups are provided, one for the 101-key extended PC keyboard,
  7. ; one for the 88-key original keyboard.  This file (when used with MS-DOS
  8. ; Kermit 3.10 or later, automatically determines which kind of keyboard you
  9. ; have.  See the comments in the file to learn the key assignments.
  10. ;
  11. ; NOTE: The key assignments made by this file comprise just one of an infinite
  12. ; number of possible arrangements.  No two people agree about how best to map
  13. ; DEC keyboard keys to IBM PC keys.  If the mappings done by this file do not
  14. ; suit your taste, feel free to make modifications.
  15. ;
  16. ; Usage: TAKE MSIVT3.INI (or put this command in your MSKERMIT.INI file).
  17. ; If you will be emulating a VT320 terminal on a DEC VAX computer running
  18. ; VMS 5.0 or later, also uncomment the following command:
  19. ;
  20. ;;; SET TERMINAL DISPLAY 8
  21.  
  22. ; If you need to use the ISO Latin-1 character set in the 7-bit environment
  23. ; with the host sending Shift-In/Shift-Out (Ctrl-N/Ctrl-O) to switch between
  24. ; ASCII and special characters, uncomment the following command:
  25. ;
  26. ;;; set terminal character-set latin1 G1
  27.  
  28. ; Standard VT terminal settings
  29. ;
  30. set term tabs at 1:8
  31.  
  32. ; Version test
  33. ;
  34. if not < version 310 goto systest
  35. echo MSIVT3.INI requires MS-DOS Kermit Version 3.10 or later.
  36. pop
  37.  
  38. ; System check
  39. ;
  40. :systest
  41. if eq \v(platform) IBM-PC goto kbtest
  42. echo MSIVT3.INI is only for IBM PCs, PS/2s, and compatibles.
  43. pop
  44.  
  45. ; Automatic keyboard test
  46. ;
  47. :kbtest
  48. if = \v(keyboard) 88 goto kb88
  49. if = \v(keyboard) 101 goto kb101
  50. echo Keyboard type "\v(keyboard)" not supported by MSIVT3.INI.
  51. pop
  52.  
  53. :kb101
  54. echo MSIVT3.INI: IBM-101 Extended Keyboard Setup...
  55. ;
  56. ; ***************** IBM-101 Extended Keyboard Definitions ******************
  57. ;                           IBM KEY              DEC KEY
  58. ; Numeric Keypad
  59. ; There are two definitions for each of the numeric keypad keys,
  60. ; one for when <NUM-LOCK> is pressed, and one when it isn't.
  61. set key \850 \kkp0        ; Keypad 0 (Nunlock)   Keypad 0
  62. set key \338 \kkp0        ; Keypad 0 (Normal)    Keypad 0
  63. set key \847 \kkp1        ; Keypad 1 (Numlock)   Keypad 1
  64. set key \335 \kkp1        ; Keypad 1 (normal)    Keypad 1
  65. set key \848 \kkp2        ; Keypad 2 (numlock)   Keypad 2
  66. set key \336 \kkp2        ; Keypad 2 (normal)    Keypad 2
  67. set key \849 \kkp3        ; Keypad 3 (Numlock)   Keypad 3
  68. set key \337 \kkp3        ; Keypad 3 (Normal)    Keypad 3
  69. set key \843 \kkp4        ; Keypad 4 (Numlock)   Keypad 4
  70. set key \331 \kkp4        ; Keypad 4 (Normal)    Keypad 4
  71. set key \844 \kkp5        ; Keypad 5 (Numlock)   Keypad 5
  72. set key \332 \kkp5        ; Keypad 5 (Normal)    Keypad 5
  73. set key \845 \kkp6        ; Keypad 6 (Numlock)   Keypad 6
  74. set key \333 \kkp6        ; Keypad 6 (Normal)    Keypad 6
  75. set key \839 \kkp7        ; Keypad 7 (Numlock)   Keypad 7
  76. set key \327 \kkp7        ; Keypad 7 (Normal)    Keypad 7
  77. set key \840 \kkp8        ; Keypad 8 (Numlock)   Keypad 8
  78. set key \328 \kkp8        ; Keypad 8 (normal)    Keypad 8
  79. set key \841 \kkp9        ; Keypad 9 (Numlock)   Keypad 9
  80. set key \329 \kkp9        ; Keypad 9 (Normal)    Keypad 9
  81. set key \330 \kkpminus    ; Keypad -             Keypad -
  82. set key \334 \kkpcoma     ; Keypad +             Keypad ,
  83. set key \851 \kkpdot      ; Keypad . (Numlock)   Keypad .
  84. set key \339 \kkpdot      ; Keypad . (normal)    Keypad .
  85. set key \4365 \Kkpenter   ; Keypad Enter         Keypad Enter
  86. set key \4399 \kdechelp   ; Keypad /             Help (F15)
  87. set key \311 \kdecDO      ; Keypad *             DO key (F16)
  88.  
  89.  
  90. ; F1 thru F20 keys        IBM                    DEC
  91. set key \1374 \kholdscrn  ; Control-F1           F1
  92. set key \1375 \kprtscn    ; Control-F2           F2
  93. set key \1376 \khelp      ; Control-F3           Setup
  94. ; No Definition           ; Control-F4           F4
  95.  
  96.  
  97.                           ; F1                   Gold (PF1)
  98.                           ; F2                   PF2
  99.                           ; F3                   PF3
  100.                           ; F4                   PF4
  101. set key \319 \kbreak      ; F5                   BREAK
  102. set key \320 \Kdecf6      ; F6                   DEC F6
  103. set key \321 \Kdecf7      ; F7                   DEC F7
  104. set key \322 \KdecF8      ; F8                   DEC F8
  105. set key \323 \KdecF9      ; F9                   DEC F9
  106. set key \324 \KdecF10     ; F10                  DEC F10
  107. set key \389 \kdecF11     ; F11                  DEC F11 (ESC)
  108. set key \390 \kdecF12     ; F12                  DEC F12 (BS)
  109. set key \856 \kdecF13     ; Shift-F5             DEC F13 (LF)
  110. set key \857 \kdecF14     ; Shift-F6             DEC F14
  111. set key \858 \kdecHelp    ; Shift-F7             DEC HELP
  112. set key \859 \kdecDO      ; Shift-F8             DEC DO
  113. set key \860 \kdecF17     ; Shift-F9             DEC F17
  114. set key \861 \KdecF18     ; Shift-F10            DEC F18
  115. set key \903 \KdecF19     ; Shift-F11            DEC F19
  116. set key \904 \kdecF20     ; Shift-F12            DEC F20
  117.  
  118. ; Cursor Keypad
  119. set key \4434 \kdecinsert ; Gray Insert          DEC Insert Here
  120. set key \4435 \kdecRemove ; Gray Delete          DEC Remove
  121. set key \4423 \kdecFind   ; Gray Home            DEC Find
  122. set key \4431 \KdecSelect ; Gray End             DEC Select
  123. set key \4425 \KDecPrev   ; Gray Page Up         DEC Prev Screen
  124. set key \4433 \KDecNext   ; Gray Page Down       DEC Next Screen
  125. pop
  126.  
  127. :kb88
  128. echo MSIVT3.INI: IBM-88 Original Keyboard Setup...
  129. ;
  130. ; Key Definitions:
  131. ;
  132. ; The numeric keypad is mapped as follows:
  133. ;
  134. ;        IBM Function                     VT100 Keys
  135. ;     Normal      Shifted           On the Numeric Keypad
  136. ;  -------------------------      -------------------------
  137. ;  |  F1 |  F2 | SF1 | SF2 |      | PF1 | PF2 | PF3 | PF4 |
  138. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  139. ;  |  F3 |  F4 | SF3 | SF4 |      |  7  |  8  |  9  |  -  |
  140. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  141. ;  |  F5 |  F6 | SF5 | SF6 |      |  4  |  5  |  6  |  ,  |
  142. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  143. ;  |  F7 |  F8 | SF7 | SF8 |      |  1  |  2  |  3  |     |
  144. ;  |-----------+-----|-----|      |-----------+-----|ENTER|
  145. ;  |  F9 | F10 | SF9 |SF10 |      |     0     |  .  |     |
  146. ;  -------------------------      -------------------------
  147. ;
  148. ; The F9 and F10 keys, as well as the SF8 and SF10 keys, are repeated
  149. ; for consistency.
  150. ;
  151. ; The DEC F1 to F10 keys are mapped to the PC's Ctrl-F1 through Ctrl-F10 keys.
  152. ; The DEC F11 to F20 keys are mapped to the PC's Alt-F1 to Alt-F10 keys.
  153. ;
  154. ;  Definition               PC key         DEC key
  155. set key \315 \kpf1        ; F1             PF1
  156. set key \316 \kpF2        ; F2             PF2
  157. set key \317 \kkp7        ; F3             Keypad 7
  158. set key \318 \kkp8        ; F4             Keypad 8
  159. set key \319 \kkp4        ; F5             Keypad 4
  160. set key \320 \kkp5        ; F6             Keypad 5
  161. set key \321 \kkp1        ; F7             Keypad 1
  162. set key \322 \kkp2        ; F8             Keypad 2
  163. set key \323 \kkp0        ; F9             Keypad 0
  164. set key \324 \kkp0        ; F10            Keypad 0 (duplicate)
  165.  
  166. set key \852 \kpf3        ; Shift-F1       PF3
  167. set key \853 \kpf4        ; Shift-F2       PF4
  168. set key \854 \kkp9        ; Shift-F3       Keypad 9
  169. set key \855 \kkpminus    ; Shift-F4       Keypad Minus
  170. set key \856 \kkp6        ; Shift-F5       Keypad 6
  171. set key \857 \kkpcoma     ; Shift-F6       Keypad Comma
  172. set key \858 \kkp3        ; Shift-F7       Keypad 3
  173. set key \859 \kkpenter    ; Shift-F8       Keypad Enter
  174. set key \860 \kkpdot      ; Shift-F9       Keypad Dot
  175. set key \861 \kkpenter    ; Shift-F10      Keypad Enter (duplicate)
  176.  
  177. set key \1374 \kholdscrn  ; Control-F1     F1
  178. set key \1375 \kprtscn    ; Control-F2     F2
  179. set key \1376 \khelp      ; Control-F3     Setup
  180. ; No Definition           ; Control-F4     F4
  181. se